package com.codeZ.StateParttern.impl;

/**
 * 具体状态类
 *
 * @author codeZhang
 * @Date 2024/8/29 11:38
 */
public class ConcreteStateA extends State{
    @Override
    public void handle(Context context) {
        System.out.println("ConcreteStateA 修改状态为 ConcreteStateB");

        context.setState(new ConcreteStateB());
    }
}
